<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'adminUserStudents.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<sx:head/>
  </head>
  
   <BODY background="tutu/11.jpg">
    <H3>学生用户管理界面</H3><hr>
    <a href='lookUserStudents?pageSize=${pageSize}&us.uno=0'>添加学生</a>
    <table  >
  		<caption>
			      
			 	<h5>
   					<font color="red">
   						注:
   						 
   						<s:property value="#request.userStudentsTip"/>
   						
   						<br>
   						
   						<s:fielderror/>
   					</font>
   				</h5>
		</caption>
   		<tr style="background-color:#006699">
   		<td ><center><b>***</b></center></td>
   		<td ><center><b>头像</b></center></td>
   		<td ><center><b>学号</b></center></td>
   		<td ><center><b>密码</b></center></td>
		<td ><center><b>姓名</b></center></td>
		
		<td ><center><b>性别</b></center></td>
		
		<td ><center><b>电话</b></center></td>
		<td ><center><b>入学日期</b></center></td>
		<td ><center><b>QQ</b></center></td>
		<td ><center><b>住址</b></center></td>
		<td ><center><b>个性签名</b></center></td>
		
		<td colspan="2"><center><b>操作</b></center></td>
   	
   		</tr>
   		
   		<s:iterator value="li"  status="st" >
   		<s:if test="#st.odd">
   		   <tr  style="background-color:#cccccc"  >
   		   </s:if>
   		   <s:else>
   		   <tr  style="background-color:#bbbbbb"  >
   		   </s:else>
   		   
   		   <td><center><s:property value="#st.index+pInfo.start"/><br></center></td>
   		   
   		   <td ><center><img src='<s:property value="avapath"/>/<s:property value="avaname"/>' style="width: 40px"alt="头像"/><br></center></td>
   		   <td ><center><s:property value="uno"/><br></center></td>
   		   <td ><center><s:property value="upass"/><br></center></td>
   		   <td ><center><s:property value="uname"/><br></center></td>
   		   
   		   
   		   <td ><center><s:property value="ssex"/><br></center></td>
   		   
   		   <td ><center><s:property value="tel"/><br></center></td>
   		   <td ><center><s:property value="admission"/><br></center></td>
   		   <td ><center><s:property value="qq"/><br></center></td>
   		   
   		   <td ><center><s:property value="address"/><br></center></td>
   		   <td ><center><s:property value="signature"/><br></center></td>
   		  <td ><center><a href='lookUserStudents?pageSize=${pageSize}&us.uno=<s:property value="uno"/>'>修改</a><br></center></td>
   		  <td ><center><a href='delUserStudents?pageSize=${pageSize}&us.uno=<s:property value="uno"/>'>删除</a><br></center></td>
   		   
   		   
   		</tr>
   		</s:iterator>
   		<form action="addUserStudents" method="post"  enctype="multipart/form-data">
   		<input type="hidden" name="pageSize" value="${pageSize}" />
   		<input type="hidden" name="request_locale" value="zh_CN" />
   		<tr style="background-color:#826858">
   			<td><center>***</center></td>
   			
   			
   			<td><center>***</center></td>
   			<td><center><input type="text" name="us.uno" style="width: 90px; " ></center></td>
   			<td><center><input type="text" name="us.upass"  style="width: 90px; " value="111111"></center></td>
   			<td><center><input type="text" name="us.uname"  style="width: 90px; "></center></td>
   			
   			
   			<td><center><br><select name="us.ssex">  
   		   			<option value="男">男</option>
  					<option value="女">女</option>   
  					<option value="不详">不详</option>   
  					
					</select>  <br></center></td>
   			
   			<td><center><input type="text" name="us.tel" style="width: 90px; " ></center></td>
   			
   			<td>
   				<center>
   					<sx:datetimepicker name="us.admission"  value="%{'2015-12-28 '}"  type="date" displayFormat="yyyy-MM-dd " >
   					</sx:datetimepicker>
   				</center>
   			</td>
   			<td><center><input type="text" name="us.qq"  style="width: 90px; "></center></td>
   			<td><center><input type="text" name="us.address" style="width: 90px; " ></center></td>
   			<td><center>***</center></td>
   			
   			
   			
   			
   			
   			<td><center><input type="submit" value="添加" style="height: 28px; width: 43px; background-color: Silver"/></center></td>
   			
   			<td><center><input type="reset" value="重置" style="height: 28px; width: 43px; "></center></td>
   		</tr>
   		</form>
   			<tr style="background-color:#006699">
   		
   				<td colspan="15"> 
   				&nbsp;
   			
   			</td>
   			</tr>
   		</table>
   		<hr>
   			<table>
   		<tr><td>
   		
   		 
   		<form action="showUserStudents" method="post">
   		 <B><small>
   				共&nbsp;<s:property value="pInfo.listSize"/>&nbsp;条 &nbsp;&nbsp;
   			 
   		   		&nbsp;每页&nbsp;
   		   		
   		   		<select name="pageSize">  
   		   			<s:iterator value="pInfo.pageSizeList"  var="list">
   		   			<s:if test="#list==pInfo.pageSize">
   		   			
   		   			<option selected="selected" value= "<s:property value="pInfo.pageSize"/>  "><s:property value="pInfo.pageSize"/></option>
   		   			
   		   			</s:if>
                     <s:else>
  					<option value="<s:property value="list"/>"><s:property value="list"/></option>  
  					</s:else>
  					</s:iterator>
					</select>  
   		   		
   		   		
   		   		&nbsp;条&nbsp;&nbsp;
   		   		</small></B>
   		   		<input type="submit" value="设置" style="height: 28px; width: 43px; background-color: Teal">
   		   		</form>
   		   		</td>
   		   		<td>
   			  <B><small>
   				&nbsp;第&nbsp;<s:property value="pInfo.nowPage"/>/<s:property value="pInfo.pageCount"/>&nbsp;页&nbsp;&nbsp;
   			 
   		   		&nbsp;
   		   		
   		   	  <s:if test="pInfo.nowPage!=1">
   		   	           &nbsp;&nbsp;	<a href='showUserStudents?pageSize=${pageSize } &nowPage=<s:property value="pInfo.nowPage-1"/>'> 上一页</a>
   		   	
   		   	  </s:if>
   		     	&nbsp;&nbsp;&nbsp;
   		   	      
   		   	        &nbsp;  页号:&nbsp;&nbsp;&nbsp;
   		   		
                
   				<s:iterator value="pInfo.pageNoList"  var="noList" >
   					<s:if test="#noList!=-1">
   						<s:if test="#noList!=0">
   				
   							<s:if test="pInfo.nowPage==#noList">
   								<s:property value="pInfo.nowPage"/>&nbsp;
	   						</s:if>
	   						 <s:else>
     							<a href="showUserStudents?pageSize=${pageSize } &nowPage=<s:property value="noList"/>"><s:property value="noList"/></a>&nbsp;
     						</s:else>
     					</s:if>
     						<s:else>
     						&nbsp;...&nbsp;
     						</s:else>
     				</s:if>
   				</s:iterator>
			
   		   		
   		   	 <s:if test="pInfo.nowPage!=pInfo.pageCount">
   		    	&nbsp;&nbsp;	<a href='showUserStudents?pageSize=${pageSize } &nowPage=<s:property value="nowPage+1"/>'> 下一页</a>
   		   	
   		   	</s:if>
   		   	</small></B>
   		   	</td>
   		   	<td>
   		   	
   		   	<form action="showUserStudents" method="post">
   		   	 <B><small>
   		   	 &nbsp;&nbsp;
   		    
   		   	 <input type="hidden" name="pageSize" value="${pageSize }" /> 
   		   	   <input type="text" name="nowPage" value=' <s:property value="pInfo.nowPage"/> ' style="width: 31px; "/>
   		    	&nbsp;&nbsp;<input type="submit" value="跳页" style="height: 28px; width: 43px; background-color: Teal">
   		   </small></B>
   		   </form>
   		   
   		   
   		    
   		    </td></tr>
   		    </table>
   		    
   		    
   		     <hr> 	
   		     <s:debug/>	
   
    
  </body>
</html>
